import { createRouter, createWebHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';
import LoginView from '../views/LoginView.vue';
import RegisterView from '../views/RegisterView.vue';
import ${frontendPageComponentName} from '../views/${frontendPageFileBase}.vue';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/', component: HomeView },
    { path: '/login', component: LoginView },
    { path: '/register', component: RegisterView },
    { path: '${frontendRouteFullPath?js_string}', component: ${frontendPageComponentName} },
    { path: '/:pathMatch(.*)*', redirect: '/' },
  ],
});

export default router;

